import { http } from '@/utils/http/axios';

export function listMachineUnit(data = {}) {
  return http.request({
    url: '/admin/gather/machineUnit/list',
    method: 'get',
    data,
  });
}

export function pageMachineUnit(data = {}) {
  return http.request({
    url: '/admin/gather/machineUnit/page',
    method: 'post',
    data,
  });
}

export function addMachineUnit(data = {}) {
  return http.request({
    url: '/admin/gather/machineUnit/add',
    method: 'post',
    data,
  });
}

export function updateMachineUnit(data = {}) {
  return http.request({
    url: '/admin/gather/machineUnit/update',
    method: 'post',
    data,
  });
}

export function delMachineUnit(data = {}) {
  return http.request({
    url: '/admin/gather/machineUnit/delete',
    method: 'post',
    data,
  });
}
